package cn.cdiothree.enums;

/**
 * 用户信息情况枚举
 */
public enum MessageEnum {
    SYSTEM_ERROR(1001, "系统异常"),
    USER_INVALID(1002, "用户名密码错误"),
    USER_EXIST(1003, "用户已存在"),
    BAD_REQUEST(400, "错误的请求"),
    UNAUTHORIZED(401, "未授权"),
    APPLY_HAS_EXIST(403,"活动已报名"),
    ;
    private Integer code;

    private String message;

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
